package com.bank.backend.boot.base.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName bank_user
 */
@TableName(value ="bank_user")
@Data
public class BankUser implements Serializable {
    /**
     * 银行用户id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 银行用户手机号
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 银行用户邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 银行用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 级别
     */
    @TableField(value = "level")
    private Integer level;

    /**
     * 工号
     */
    @TableField(value = "bank_number")
    private String bankNumber;

    /**
     * 归属银行
     */
    @TableField(value = "bank_branch_id")
    private Long bankBranchId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    /**
     * 逻辑删除 0-未删除, 1-删除
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}